package cn.blankchn.www;

import cn.blankchn.www.windows.MyFrame;

import javax.swing.*;
import java.awt.*;

/**
 * Created by apple on 2018/4/2.
 */
public class MainWindow {


    public static void main(String[] args){

        EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                MyFrame frame = new MyFrame();
                initFrame(frame);
                frame.setResizable(true);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setVisible(true);

            }
        });
    }

    private static void initFrame(MyFrame frame) {
        frame.setLocation(100,200);
        frame.setBounds(100,200,800,600);
    }


}
